import React from 'react';
import { Text } from 'react-native';
import { Actions } from 'react-native-router-flux';
import _ from 'lodash';

export const BackButton = ({ action }) => {
  let defaultAction = _.isFunction(action) ? action : Actions.pop();
  return <Text onPress={defaultAction}>back</Text>
};

export default {
  navigationBarStyle: {
    height: 44,
    overflow: 'visible'
  },
  titleStyle: {
    fontSize: 16,
    fontWeight: '100'
  },
};